package com.mfangsoft.zhuangjialong.app.applogin.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.mfangsoft.zhuangjialong.app.applogin.mapper.CustomerEntityMapper;
import com.mfangsoft.zhuangjialong.app.applogin.model.CustomerEntity;
import com.mfangsoft.zhuangjialong.app.applogin.service.CustomerService;
import com.mfangsoft.zhuangjialong.common.model.Page;

@Service("customerImpl")
public class CustomerServiceImpl implements CustomerService{

	@Autowired
	private CustomerEntityMapper customerEntityMapper;
	
	@Override
	public Page<CustomerEntity> selectCustomersByUserManagerId(Page<CustomerEntity> page) {
		List<CustomerEntity> selectCustomersByUserManagerIdForPage = customerEntityMapper.selectCustomersByUserManagerIdForPage(page);
		page.setData(selectCustomersByUserManagerIdForPage);
		return page;
	}
	
}
